package com.ccb.sc.member.convert;

import com.ccb.sc.member.vo.WishingBottleCreateVo;
import com.ccb.sc.member.vo.WishingBottleListVo;
import com.ccb.sc.common.modules.member.entity.WishingBottle;
import org.mapstruct.Mapper;

import java.util.List;

import static org.mapstruct.factory.Mappers.getMapper;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-16
 */
@Mapper
public interface WishingBottleConvert {

    WishingBottleConvert INSTANCE = getMapper(WishingBottleConvert.class);

    List<WishingBottleListVo> entity2ListVo(List<WishingBottle> list);

    WishingBottle vo2Entity(WishingBottleCreateVo createVo);
}
